package com.lyj.system.mapper.exam;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyj.system.domain.exam.ExamQuestion;
import com.lyj.system.domain.question.vo.QuestionVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2025-08-22
 * Time: 16:10
 */
public interface ExamQuestionMapper extends BaseMapper<ExamQuestion> {
    List<QuestionVO> selectQuestionList(Long examId);


    @Select("SELECT MAX(question_order) FROM tb_exam_question WHERE exam_id = #{examId}")
    Integer getMaxQuestionOrderByExamId(Long examId);

}
